package com.ruoyi.report.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.report.mapper.ErpPayableMonthlyReportMapper;
import com.ruoyi.report.domain.ErpPayableMonthlyReport;
import com.ruoyi.report.service.IErpPayableMonthlyReportService;

/**
 * 应付款月份报Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-31
 */
@Service
public class ErpPayableMonthlyReportServiceImpl implements IErpPayableMonthlyReportService 
{
    @Autowired
    private ErpPayableMonthlyReportMapper erpPayableMonthlyReportMapper;

    /**
     * 查询应付款月份报
     * 
     * @param id 应付款月份报主键
     * @return 应付款月份报
     */
    @Override
    public ErpPayableMonthlyReport selectErpPayableMonthlyReportById(Long id)
    {
        return erpPayableMonthlyReportMapper.selectErpPayableMonthlyReportById(id);
    }

    /**
     * 查询应付款月份报列表
     * 
     * @param erpPayableMonthlyReport 应付款月份报
     * @return 应付款月份报
     */
    @Override
    public List<ErpPayableMonthlyReport> selectErpPayableMonthlyReportList(ErpPayableMonthlyReport erpPayableMonthlyReport)
    {
        return erpPayableMonthlyReportMapper.selectErpPayableMonthlyReportList(erpPayableMonthlyReport);
    }

    /**
     * 新增应付款月份报
     * 
     * @param erpPayableMonthlyReport 应付款月份报
     * @return 结果
     */
    @Override
    public int insertErpPayableMonthlyReport(ErpPayableMonthlyReport erpPayableMonthlyReport)
    {
        return erpPayableMonthlyReportMapper.insertErpPayableMonthlyReport(erpPayableMonthlyReport);
    }

    /**
     * 修改应付款月份报
     * 
     * @param erpPayableMonthlyReport 应付款月份报
     * @return 结果
     */
    @Override
    public int updateErpPayableMonthlyReport(ErpPayableMonthlyReport erpPayableMonthlyReport)
    {
        return erpPayableMonthlyReportMapper.updateErpPayableMonthlyReport(erpPayableMonthlyReport);
    }

    /**
     * 批量删除应付款月份报
     * 
     * @param ids 需要删除的应付款月份报主键
     * @return 结果
     */
    @Override
    public int deleteErpPayableMonthlyReportByIds(Long[] ids)
    {
        return erpPayableMonthlyReportMapper.deleteErpPayableMonthlyReportByIds(ids);
    }

    /**
     * 删除应付款月份报信息
     * 
     * @param id 应付款月份报主键
     * @return 结果
     */
    @Override
    public int deleteErpPayableMonthlyReportById(Long id)
    {
        return erpPayableMonthlyReportMapper.deleteErpPayableMonthlyReportById(id);
    }
}
